<?php
/**
 * Created by PhpStorm.
 * User: sunwu
 * Date: 2018/2/8
 * Time: 9:09
 */

namespace app\home\model;

class Collection extends Base{
    protected $pk='PK_CollectionGuid';
    protected $table='rs_collection';
    public function resource()
    {
        return $this->hasOne('resource','PK_ResourceGuid','FK_ResourceGuid');
    }

}